package com.onlineproject.dao;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.onlineproject.action.PageModel;
import com.onlineproject.model.Student;
import com.onlineproject.model.Teacher;

public interface TeacherDaoInterface {


	public boolean save(Teacher transientInstance);

	public boolean update(Teacher transientInstance);
	
	public void delete(Teacher persistentInstance);

	public Teacher findById(java.lang.String id);

	public List findByExample(Teacher instance);

	public List findByProperty(String propertyName, Object value);

	public List findByPassword(Object password);
	
	public List findByActivateCode(Object activateCode);

	public List findByName(Object name);

	public List findBySex(Object sex);

	public List findByPosition(Object position);

	public List findByFaculty(Object faculty);

	public List findByPhone(Object phone);

	public List findByField(Object field);

	public List findByAchievement(Object achievement);

	public List findByLab(Object lab);

	public List findByPic(Object pic);

	public List findByEvaluate(Object evaluate);

	public List findAll();

	public PageModel findAllTeacher(int offset, int pagesize);

	public Teacher merge(Teacher detachedInstance);

	public void attachDirty(Teacher instance);

	public void attachClean(Teacher instance);


}
